home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sun3.md / varargs.h < prev    next >
C/C++ Source or Header  |  1990-11-16  |  942b  |  31 lines

  1. /*
  2.  * varargs.h --
  3.  *
  4.  *    Macros for handling variable-length argument lists for the sun3.
  5.  *
  6.  * Copyright 1990 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/lib/forms/RCS/proto.h,v 1.5 90/01/12 12:03:25 douglis Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _VARARGS_H
  19. #define _VARARGS_H
  20.  
  21. #ifndef _VA_LIST
  22. #define _VA_LIST
  23. typedef char *va_list;
  24. #endif
  25.  
  26. # define va_dcl int va_alist;
  27. # define va_start(list) list = (char *) &va_alist
  28. # define va_end(list)
  29. # define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
  30. #endif /* _VARARGS_H */
  31.